package com.hxzy.utils;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wzm
 * @create 2024-03-07 11:29
 * project_name:JavaWeb2401
 * @Description
 */
//提供阿里云oss的属性 从yml中所有对应的值作为属性值
@Component
@Data
@ConfigurationProperties(prefix = "aliyun.oss") //指定属性的前缀 只要下方属性名和yml中一致会自动封装
public class AliyunOssBean {
    private String endpoint;
    //阿里云用户身份id
    private String accesskeyId;
    //阿里云秘钥
    private String accesskeySecret;
    //存储空间名字
    private String bucketName;
}
